﻿using MyWeb.Model.User;
using MyWeb.Services.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyWeb.Services
{
    /// <summary>
	/// sysUserInfoServices
	/// </summary>	
    public interface ISysUserInfoServices
    {
        /// <summary>
        /// 根据用户名和密码获取用户信息
        /// </summary>
        /// <param name="loginName">用户名</param>
        /// <param name="loginPwd">密码</param>
        /// <returns>用户信息</returns>
        Task<SysUserInfo?> SaveUserInfo(string loginName, string loginPwd);
        /// <summary>
        /// 根据用户名和密码获取用户角色权限信息
        /// </summary>
        /// <param name="loginName">用户名</param>
        /// <param name="loginPwd">密码</param>
        /// <returns></returns>
        Task<string> GetUserRoleNameStr(string loginName, string loginPwd);
    }
}
